package com.cjx.mapper;

import com.cjx.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Book;
import java.util.List;


/**
 * @author cjx
 * @date 2021/3/22 0022 - 22:06
 */
public interface BookMapper {
    //增加一本
    int addBook(Books books);

    //删除一本
    int deleteBookById(@Param("bookId") int id);

    //更新一本
    int updateBook(Books books);

    //查询一本
    Books selectById(@Param("bookId") int id);

    //查询全部
    List<Books> selectAll();

    Books selectBookByName(String name);
}
